package com.lnking.lnkingplace.model.request.record.user;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.lnking.starter.mybatis.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author sn
 * @since 2022-08-18
 */
@Data
public class RecordUserAddRequest {

    @ApiModelProperty(value = "用户id", required = true)
    @NotNull(message = "[userId]不能为空")
    @NotBlank(message = "[userId]不能为空")
    private String userId;

    @ApiModelProperty(value = "数据信息(json)")
    private String info;

    @ApiModelProperty(value = "核酸结果出具时间")
    @NotNull(message = "[核酸结果出具时间]不能为空")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime resultTime;

    @ApiModelProperty(value = "是否集中隔离", required = true)
    @NotNull(message = "[是否集中隔离]不能为空")
    @NotBlank(message = "[是否集中隔离]不能为空")
    private String isolationFlag;


    @ApiModelProperty(value = "今日核酸时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime checkTime;

    @ApiModelProperty(value = "是否核酸")
    @NotNull(message = "[是否核酸]不能为空")
    @NotBlank(message = "[是否核酸]不能为空")
    private String checkStatus;

    @ApiModelProperty(value = "是否居家隔离", required = true)
    @NotNull(message = "[是否居家隔离]不能为空")
    @NotBlank(message = "[是否居家隔离]不能为空")
    private String homeFlag;

    @ApiModelProperty(value = "是否与病例轨迹相重叠", required = true)
    @NotNull(message = "[是否与病例轨迹相重叠]不能为空")
    @NotBlank(message = "[是否与病例轨迹相重叠]不能为空")
    private String trackCoincidenceFlag;


}
